<form id="pagerForm" method="post" action="<?php echo Yii::app()->createUrl('user/index');?>">
	<input type="hidden" name="pageNum" value="<?php echo $page['current'];?>" />
	<input type="hidden" name="numPerPage" value="<?php echo $page['numPerPage'];?>" />
	<input type="hidden" name="username" value="<?php echo $page['username'];?>" />
	<input type="hidden" name="email" value="<?php echo $page['email'];?>" />
	<input type="hidden" name="mobile" value="<?php echo $page['mobile'];?>" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?php echo Yii::app()->createUrl('user/index');?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					用户名称：<input type="text" name="username" value="<?php if(!empty($page['username'])){?><?php echo $page['username'];?><?php }?>" />
				</td>
				<td>
					邮箱：<input type="text" name="email" value="<?php if(!empty($page['email'])){?><?php echo $page['email'];?><?php }?>" />
				</td>
				<td>
					手机：<input type="text" name="mobile" value="<?php if(!empty($page['mobile'])){?><?php echo $page['mobile'];?><?php }?>" />
				</td>
				<td>
					<select class="combox" name="status">
						<option value="">所有用户</option>
						<option value="1" <?php if($page['status'] == "1"){?>selected<?php }?>>待审核用户</option>
						<option value="2" <?php if($page['status'] == "2"){?>selected<?php }?>>已审核用户</option>
					</select>
				</td>
				<td>
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!--<li><a class="add" href="<?php echo Yii::app()->createUrl('user/add');?>" target="dialog" rel="add_order" title="添加注册用户" mask="true" width="950" height="450"><span>添加</span></a></li>-->
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="<?php echo Yii::app()->createUrl('user/delete');?>" class="delete" postType="string"><span>删除</span></a></li>
			<li><a class="edit" href="<?php echo Yii::app()->createUrl('user/edit');?>&id={sid_user}" target="dialog" rel="edit_order" title="编辑用户" mask="true" width="550" height="300"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="80">用户名称</th>
				<th width="80">昵称</th>
				<th width="80">邮箱</th>
				<th width="80">手机</th>
				<th width="80">登陆次数</th>
				<th width="80">状态</th>
				<th width="80">添加时间</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($list as $value){?>
			<tr target="sid_user" rel="<?php echo $value['user_id'];?>">
				<td><input name="ids" value="<?php echo $value['user_id'];?>" type="checkbox"></td>
				<td><?php echo $value['username'];?></td>
				<td><?php echo $value['nick_name'];?></td>
				<td><?php echo $value['email'];?></td>
				<td><?php echo $value['mobile'];?></td>
				<td><?php echo $value['login_count'];?></td>
				<td><?php if($value['status'] == 1){?><span style="color:green;">待审核</span><?php }else{?><span style="color:red;">已审核</span><?php }?></td>
				<td><?php echo $value['raw_add_time'];?></td>
			</tr>
			<?php }?>
		</tbody>
	</table>
	<?php $this->beginWidget('application.widget.tools.panelBar', 
	array(
	'currentPage'=>$page['current'], 
	'total'=>$page['total'],
	'numPerPage'=>$page['numPerPage'])); ?>
	<?php $this->endWidget(); ?>
</div>